# 用列表作为可迭代对象
goods = ['服装', '鞋帽', '餐具']
for i in goods:
    print(i)

# 用字符串作为可迭代对象
str1 = 'AI人工智能'
for i in str1:
    print(i)

# 用字典作为可迭代对象
goods = {'服装': 1640, '鞋帽': 549, '餐具': 1312}
for m, n in goods.items():
    print(m, n)

# 用range()函数控制循环次数
for i in range(3):
    print('第', i + 1, '次')
